<%@page import="myJDBC.lowLevel.Objects"%>
<%@page import="ejb.*"%>
<%@page import="otherClasses.CheckAuth"%>
<%@page import="java.util.*"%>
<% if(!CheckAuth.CheckAuth(session))
			response.sendRedirect("login");
	   else{	
		ArrayList<String> al= new ArrayList<String>();
		al=((IRemoteLoginnedUserBean) request.getSession().getAttribute("userBean")).getGroupNames();
	 %>
	 <div class="row-fluid">
		<div class="span1 offset11">
			<p><small>login: <%=((IRemoteLoginnedUserBean) request.getSession().getAttribute("userBean")).getLogin()%> 
			<% 
				for(String s: al)
					out.print("<br>group: "+s+"");
			%>
			</small></p>	
			<form method="post" action="login"><button class="btn btn-small" type="submit">logout</button></form>	
		</div>
	</div>
    
	<%}	 %>